package com.jlu155.CourseManager.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.ArrayList;
import java.util.List;

@JsonIgnoreProperties(value="handler")
public class Course {
    private String name;
    private int credit;
    private int course_id;
    private int college_id;
    private String description;


    //optional
    private College college;
    private List<TeachClass> teachClassList=new ArrayList<>();

    public College getCollege() {
        return college;
    }

    public void setCollege(College college) {
        this.college = college;
    }

    public List<TeachClass> getTeachClassList() {
        return teachClassList;
    }



    public void setTeachClassList(List<TeachClass> teachClassList) {
        this.teachClassList = teachClassList;
    }


    // Getter 和 Setter 方法

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCredit() {
        return credit;
    }

    public void setCredit(int credit) {
        this.credit = credit;
    }

    public int getCourse_id() {
        return course_id;
    }

    public void setCourse_id(int course_id) {
        this.course_id = course_id;
    }

    public int getCollege_id() {
        return college_id;
    }

    public void setCollege_id(int college_id) {
        this.college_id = college_id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
